﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text;
namespace Lawyer.Web.ArchiveInfo
{
    public partial class Show : Page
    {        
        		public string strid=""; 
		protected void Page_Load(object sender, EventArgs e)
		{
			if (!Page.IsPostBack)
			{
				if (Request.Params["id"] != null && Request.Params["id"].Trim() != "")
				{
					strid = Request.Params["id"];
					string ArchiveID= strid;
					ShowInfo(ArchiveID);
				}
			}
		}
		
	private void ShowInfo(string ArchiveID)
	{
		Lawyer.BLL.ArchiveInfo bll=new Lawyer.BLL.ArchiveInfo();
		Lawyer.Model.ArchiveInfo model=bll.GetModel(ArchiveID);
		this.lblArchiveID.Text=model.ArchiveID;
		this.lblTitle.Text=model.Title;
		this.lblLawyerID.Text=model.LawyerID;
		this.lblCustomID.Text=model.CustomID;
		this.lblIsAgency.Text=model.IsAgency.ToString();
		this.lblAgencyID.Text=model.AgencyID;
		this.lblAgencyRate.Text=model.AgencyRate.ToString();
		this.lblStatus.Text=model.Status.ToString();
		this.lblEndDate.Text=model.EndDate.ToString();
		this.lblCreatedDate.Text=model.CreatedDate.ToString();
		this.lblCreatedBy.Text=model.CreatedBy;
		this.lblCheckedBy.Text=model.CheckedBy;
		this.lblCheckedDate.Text=model.CheckedDate.ToString();
		this.lblUpdatedDate.Text=model.UpdatedDate.ToString();
		this.lblUpdatedBy.Text=model.UpdatedBy;

	}


    }
}
